package com.ogilvy.audi.service.impl;

import java.util.List;
import java.util.Map;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ogilvy.audi.dao.CircleCategoryDao;
import com.ogilvy.audi.model.CircleCategory;
import com.ogilvy.audi.service.CircleCategoryManager;

@Service("circleCategoryManager")
@WebService(serviceName = "CircleCategoryService", endpointInterface = "com.ogilvy.audi.service.CircleCategoryManager")
public class CircleCategoryManagerImpl extends GenericManagerImpl<CircleCategory, Long> implements CircleCategoryManager {
    CircleCategoryDao circleCategoryDao;

    @Autowired
    public CircleCategoryManagerImpl(CircleCategoryDao circleCategoryDao) {
        super(circleCategoryDao);
        this.circleCategoryDao = circleCategoryDao;
    }
    public List<CircleCategory> list(Map<String,Object> condition){
    	return circleCategoryDao.query(condition);
    }
    public List<CircleCategory> listByHot(){
    	return circleCategoryDao.queryByHot();
    }
}